home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
bcsrce2.zip
/
SAVEIT2.BC
< prev
next >
Wrap
Text File
|
1991-02-22
|
3KB
|
98 lines
rem Hotkey to activate this TSR is Alt-0.
rem This product use the TesSeRact(tm) Ram-Resident Library and supports
rem the TesSeRact Standard for Ram-Resident Program Communication. For
rem information about TesSeRact, contact the TesSeRact Development Team
rem at: TesSeRact Development Team
rem 1657 The Fairways
rem Suite 101
rem Jenkintown, PA 19046
rem 1-215-884-3373
rem Compuserve: 70731.20
rem MCIMAIL: 315-5415
rem
rem This MCI Account has been provided to the TesSeRact Development Team
rem by Borland International, Inc. TesSeRact is a trade mark of the
rem TesSeRact Development Team.
if %1 = disable goto disable_TSR
if %1 = enable goto enable_TSR
if %1 = unload goto unload_TSR
if %1 = popup goto popup_TSR
if %1 = d goto disable_TSR
if %1 = e goto enable_TSR
if %1 = u goto unload_TSR
if %1 = p goto popup_TSR
TSR_installed?
if errorlevel 1 goto installed
DO_IF %1m = m
:Reroop
echo What is the file name you want the screens appended to?
echo.
READ %!f
let %!l = %!f
STRING_LENGTH %!l
LE %!l 3
IF ERRORLEVEL 1 GOTO Erroop
GOTO Main
:Erroop
echo Filename must exceed 3 characters including drive, dir and .ext
GOTO Reroop
ELSE
let %!f = %1
GOTO Main
END_IF
:Main
rem SET __SV=%!f
echo Installing screen capture program.
echo All screens toggled with Alt-0 are redirected to %!f.
echo.
echo SYNTAX--: SAVEIT2 [UNLOAD]/[ENABLE]/[DISABLE]/[POPUP]
echo SYNTAX--: SAVEIT2 [U]/[E]/[D]/[P]
echo.
echo If one of the above reserved words is not used as a parameter, then
echo the {optional} parameter becomes the file that will be appended to.
echo.
echo This BATCOM product incorporates the TesSeRact library.
TSR 11 8
save_screen
let %!w = 1
do_while not %!w == 26
locate %!w 1
let %!l = 0
read_screen %!l
echo %!l>>%!f
add %!w 1
end_while
restore_screen
beep
return
:installed
echo The screen capture TSR program has already been installed.
exit
:disable_TSR
GOSUB CHECK_TSR
TSR_disable
echo The screen capture TSR has been DISABLED.
exit
:enable_TSR
GOSUB CHECK_TSR
TSR_enable
echo The screen capture TSR has been ENABLED.
exit
:unload_TSR
GOSUB CHECK_TSR
TSR_unload
echo The screen capture TSR has been UNLOADED.
exit
:popup_TSR
GOSUB CHECK_TSR
TSR_popup
exit
:CHECK_TSR
TSR_installed?
if not errorlevel 1 goto N_A
RETURN
:N_A
echo The screen capture TSR hasn't been installed yet.
echo SAVEIT2, by itself, installs the TSR.
exit